package com.easy.system.design.proxy;

/**
 * Created with IntelliJ IDEA.
 * User: sunguangzhu
 * Date: 13-8-12
 * Time: 下午2:15
 * To change this template use File | Settings | File Templates.
 */
public class Proxy implements Subject{
    private Subject subject ;

    public Proxy() {
    }

    public Proxy(Subject subject) {
        this.subject = subject;
    }


    @Override
    public void request() {
        this.before();
        this.subject.request();
        this.after();
        //To change body of implemented methods use File | Settings | File Templates.
    }

    private void after() {
        //To change body of created methods use File | Settings | File Templates.
    }

    private void before() {
        //To change body of created methods use File | Settings | File Templates.
    }
}
